package common;

import java.rmi.Remote;
import java.rmi.RemoteException;

import common.characters.CharacterInterface;

/**
 * Remote Interface for the Server
 */
public interface ServerInterface extends Remote {
	public int connectClient(ClientInterface client, String playerName,
			CharacterInterface character, String IP) throws RemoteException;

	public void diceRolled(int player) throws RemoteException;

	public void tileChosen(int i, int player) throws RemoteException;

	public void requestUpdate(int player) throws RemoteException;

	public void tileEvent(final int player) throws RemoteException;

	public void tileEventContinue(final int player) throws RemoteException;

	public void requestStart(int player) throws RemoteException;

	public void shutdownClients(final String txt) throws RemoteException;

	public void update(final int i, final Game game) throws RemoteException;

}
